package src.com.doit.demo;

public class Phone {
    String brand;//品牌
    String color;//颜色
    String price;//价格
    public  void call()//打电话
    {
        System.out.println(this.brand+"手机  "+this.color+"  价格是:"+this.price+"元"+" 打电话");
    }
    public void send()
    {
        System.out.println(this.brand+"手机  "+this.color+"  价格是:"+this.price+"元"+" 发短信");
    }
    public void show()
    {
        System.out.println(this.brand);
        System.out.println(this.color);
        System.out.println(this.price);
    }

    public Phone(String brand, String color, String price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    public void set(String b, String c, String p)
    {
        this.brand=b;
        this.color=c;
        this.price=p;
    }
}
